﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EIIS.Infrastructure.Model.System;
using EIIS.FrameWork.Service;

namespace EIIS.Infrastructure.Service.System
{
    public interface IDictionaryManager : IGenericManager<Dictionary>
    {
        /// <summary>
        /// 根据数据字典分类获取该分类的条目值
        /// </summary>
        /// <param name="total">条目值总数</param>
        /// <param name="strDicCategoryId">数据字典分类ID</param>
        /// <param name="page">页码</param>
        /// <param name="rows">每页多少行</param>
        /// <param name="order">排序字段</param>
        /// <param name="sort">正序或倒叙</param>
        /// <returns></returns>
        IList<Dictionary> LoadAllByPage(out long total, string strDicCategoryId, int page, int rows, string order, string sort);

        /// <summary>
        /// 根据数据字典分类编码获取条目值
        /// </summary>
        /// <param name="strCode">分类编码</param>
        /// <returns></returns>
        IList<Dictionary> LoadAllByCategoryCode(string strCode);

        /// <summary>
        /// 根据条码号获取字典中包的数据
        /// </summary>
        /// <param name="TiaoMH">条码号</param>
        /// <param name="ZT">状态值：1包装，2灭菌，3发放</param>
        /// <returns></returns>
        Dictionary GetByTiaoMH(string TiaoMH, int ZT);
    }
}
